home *** CD-ROM | disk | FTP | other *** search
/ The Way Things Work / Way Things Work, The (1994)(Dorling Kindersley).iso / principl / qcom / qcom0x.dib (.png) < prev    next >
Bitmap Image  |  1994-04-25  |  39.8 KB  |  375x357  |  8-bit (49 colors)
   ocr: PROGRAMMING LOMPUTER PRINTOUT. NUMBER-ENDI1O0-100 REPEAT INPUT "Guess, GUESS IF GUESSENUMBER THEN PRINT "Too low" IF GUESS>NUMBER THEN PRINT"Too-high" - UNTIL - GUESS ENUMBER PRINTCorrect" END COMMAND TO COMPUTER Programming breaks down a taskinto simple instructions. A complex program may have thousands ofinstructions. This program produces a random number, asks the user to guess what it is, and tells them whether their guess is higher, lower, or correct.